<script setup>
defineProps({
  progress: {
    type: Number,
    required: true
  }
})
</script>

<template>
  <div class="loading">
    <!--ICON区域-->
    <div class="loading-icon">
      <!-- <img src="@/assets/icon/logo.png"/> -->
    </div>
    <!--进度条区域-->
    <div class="loading-progress">
      <a-progress class="progress" :showInfo="false" :percent="progress" />
      <span style="font-size:12px;color: #3b4fa7;">正在初始化场景...</span>
    </div>
  </div>
</template>

<style scoped>
.loading {
  width: 100%;
  height: 100%;
  z-index: 12;
  color: #fff;
  position: fixed;
  right: 0px;
  top: 0px;
  padding: 0px;
  background: #0b1231;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-icon {
  flex: 0.8;
  align-items: center;
  display: flex;
}

.loading-progress {
  flex: 0.2;
  display: flex;
  flex-flow: column;
  width: 52%;
  text-align: center;

}

.loading-progress .progress {
  flex: 0.3;
}
</style>
